package com.bw.elastic.vo;

import com.bw.elastic.common.domin.Attrs;
import com.bw.elastic.common.domin.SkuEsModelList;
import com.bw.producer.domain.PmsBrand;
import com.bw.producer.domain.PmsCategory;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SearchResult {
    /**
     * 查询到的所有商品信息
     */
    private List<SkuEsModelList> skuEsModelLists;
    /**
     * 当前商品涉及到的所有分类信息
     */
    private List<CatalogVo> categories;
    /**
     * 当前商品涉及到的所有品牌信息
     */
    private List<BrandVo> brand;
    /**
     * 当前商品涉及到的所有属性信息
     */
    private List<AttrVo> attrs;
    /**
     * 总记录数
     */
    private Long total;
    /**
     * 总页码
     */
    private Integer totalPages;
    /**
     * 当前页码
     */
    private Long pageNum;

    @Data
    public static class BrandVo {

        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }

    @Data
    public static class AttrVo {

        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

}
